package mywebapps.security.dao;

import java.util.List;

import org.springframework.security.annotation.Secured;

import mywebapps.security.model.User;

public interface UserDao
{
    User getUser(String username);
    User getUser(int userId);
    List<User> getAllUsers();
    void createUser(User user);
    
    @Secured({"ROLE_ADMIN"})
    void deleteUser(int userId);
    
    void updateUser(User user);
}
